<?php
include_once("../../service/productService.php");
include_once("../../util/constant.php");

$proId = substr($_POST["proId"], 4, strlen($_POST["proId"]));
$promotionId = $_POST["promotionId"];

if(updateProductPromotion($proId, $promotionId)) echo UPDATE_SUCCESSFULLY;
else echo UPDATE_FAILED;
?>